package com.zero.insp.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author : pengjie
 * @PackageName : com.zero.insp.common
 * @Description : TODO
 * @email : 627799251@qq.com
 * @Date : 2019/3/26 13:35
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PResult<T> {
    private int code;
    private String msg;
    private T data;

    public PResult(T data){
        this.code = PJsonCode.SUCCESS;
        this.msg = "success";
        this.data = data;
    }
}
